//
//  spinnyglobeAppDelegate.m
//  spinnyglobe
//
//  Created by Anselm Hook on 9/4/08.
//  Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import "spinnyglobeAppDelegate.h"
#import "EAGLView.h"


#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
//#import <UIKit/CDStructures.h>
#import <UIKit/UIWindow.h>
//#import <UIKit/UIView-Hierarchy.h>
//#import <UIKit/UIHardware.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UITextView.h>
#import <UIKit/UIView.h>
//#import <UIKit/UIKeyboard.h>


@implementation spinnyglobeAppDelegate

@synthesize window;
@synthesize glView;

- (void)applicationDidFinishLaunching:(UIApplication *)application {

	glView.animationInterval = 1.0 / 60.0;
	[glView startAnimation];
}


- (void)applicationWillResignActive:(UIApplication *)application {
	glView.animationInterval = 1.0 / 5.0;
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
	glView.animationInterval = 1.0 / 60.0;
}

- (void)dealloc {
	[window release];
	[glView release];
	[super dealloc];
}

- (void) mouseDown:(void*)event {
	[self dealloc];
//	CGRect loc = GSEventGetLocationInWindow(event);
//	globe_event(GLOBE_MOUSEDOWN,loc.origin.x,loc.origin.y);
}

- (void) mouseDragged:(void*)event {
//	CGRect loc = GSEventGetLocationInWindow(event);
//	globe_event(GLOBE_MOUSEDRAG,loc.origin.x,loc.origin.y);
}

- (void) mouseUp:(void*)event {
//	CGRect loc = GSEventGetLocationInWindow(event);
//	globe_event(GLOBE_MOUSEUP,loc.origin.x,loc.origin.y);
}


@end
